package com.atguigu.service;

import com.atguigu.entity.User;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

public interface UserService {
    // 根据id查询用户
    Mono<User> getUserById(int id);

    // 查询所有用户
    Flux<User> getAllUsers();

    // 添加用户
    Mono<Void> saveUserInfo(Mono<User> userMono);
}
